package com.linkivr.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.linkivr.dao.*;
import com.linkivr.model.*;
import com.linkivr.service.*;

@Component("channelService")
@Transactional
public class ChannelServiceImpl implements ChannelService {
	private ChannelDao dao;

	public ChannelDao getDao() {
		return dao;
	}

	@Resource
	public void setDao(ChannelDao dao) {
		this.dao = dao;
	}

	public void add(T_channel tabObj) {
		dao.add(tabObj);
	}

	public int delete(int sysid) {
		

		return dao.delete(sysid);
	}

	public void update(T_channel tabObj) {
		dao.update(tabObj);
	}

	public int queryCount() {
		return dao.queryCount();
	}

	public T_channel query(int id) {
		return dao.query(id);
	}
	
	public T_channel query(int id, int fid){
		return dao.query(id,fid);
	}

	public List<T_channel> queryAll() {
		
		return dao.queryAll();
	}
	


	public List<T_channel> queryAll(int start, int limit) {
		return dao.queryAll(start, limit);
	}
}
